﻿using JTTD.DataBase.Model.Activity;
using JTTD.DataBase.Model.CompanyBill;
using JTTD.DataBase.Model.CompanyUserInfo;
using JTTD.DataBase.Model.Coupon;
using JTTD.DataBase.Model.Integral;
using JTTD.DataBase.Model.ShopActivity;
using JTTD.DataBase.Model.ShopCoupon;
using JTTD.DataBase.Model.System;
using JTTD.DataBase.Model.UserInfo;
using Microsoft.EntityFrameworkCore;

namespace JTTD.DataBase
{
    public class JTTDContext : DbContext
    {
        public JTTDContext(DbContextOptions<JTTDContext> options) : base(options)
        {
        }

        /// <summary>
        /// 积分收支记录
        /// </summary>
        public DbSet<IntrgralRecordModel> IntrgralRecords { get; set; }
        /// <summary>
        /// 用户信息
        /// </summary>

        public DbSet<UserInfoModel> UserInfos { get; set; }
        /// <summary>
        /// 商城活动
        /// </summary>
        public DbSet<ActivityInfoModel> ActivityInfoModels { get; set; }
        /// <summary>
        /// 商城活动参与用户
        /// </summary>
        public DbSet<ActivityJoinUserModel> ActivityJoinUserModels { get; set; }
        /// <summary>
        /// 商城优惠券
        /// </summary>
        public DbSet<CouponInfoModel> CouponInfoModels { get; set; }
        /// <summary>
        /// 系统配置
        /// </summary>
        public DbSet<ConfigInfoModel> ConfigInfoModels { get; set; }

        /// <summary>
        /// 商户和管理员信息表
        /// </summary>
        public DbSet<CompanyUserInfoModel> CompanyUserInfoModels { get; set; }
        /// <summary>
        /// 积分转换申请
        /// </summary>
        public DbSet<IntegralApplyModel> IntegralApplyModels { get; set; }
        /// <summary>
        /// 店铺活动
        /// </summary>
        public DbSet<ShopActivityInfoModel> ShopActivityInfoModels { get; set; }

        /// <summary>
        /// 店铺活动参与用户
        /// </summary>
        public DbSet<ShopActivityJoinUserModel> ShopActivityJoinUserModels { get; set; }
        /// <summary>
        /// 店铺优惠券
        /// </summary>
        public DbSet<ShopCouponInfoModel> ShopCouponInfoModels { get; set; }
        /// <summary>
        /// 店铺账单
        /// </summary>
        public DbSet<CompanyBillModel> CompanyBillModels { get; set; }
        /// <summary>
        /// 用户关注店家
        /// </summary>
        public DbSet<UserShopRelationModel> UserShopRelationModels { get; set; }

        public DbSet<IntrgralRecordCopyModel> intrgralRecordCopyModels { get; set; }
    }
}
